package Leo.serviceProviders;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

import java.util.Scanner;

@SpringBootApplication
@EnableEurekaClient  //启动eureka服务的功能，此注解已经包含了@EnableDiscouveryClient的功能
public class FaqSp {
    public static void main(String[] args) {
//        new SpringApplication(FaqSp.class).run(args);



//        Scanner scan = new Scanner(System.in);
//        String profiles = scan.nextLine();
        String profiles= "slave1";
        new SpringApplicationBuilder(FaqSp.class).profiles(profiles).run(args);



//        Scanner scanner = new Scanner(System.in);
//        String port = scanner.nextLine();
//        String port = "7778";
//        new SpringApplicationBuilder(FaqSp.class).properties("server.port=" + port).run(args);

    }
}
